package com.numberone.system.domain;

import com.numberone.common.base.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 一级类目表 typeFirst
 * 
 * @author numberone
 * @date 2020-09-25
 */
@Getter
@ToString
@Setter
public class TypeFirst extends BaseEntity
{
	private static final long serialVersionUID = 1L;

	/** 编号 */
	private Long id;
	/** 小图标地址 */
	private String icon;

	List<TypeFirstInfo> typeFirstInfoList;

	List<TypeSecond> typeSecondList;

	public List<TypeFirstInfo> getTypeFirstInfoList() {
		return typeFirstInfoList;
	}

	public void setTypeFirstInfoList(List<TypeFirstInfo> typeFirstInfoList) {
		this.typeFirstInfoList = typeFirstInfoList;
	}

	public List<TypeSecond> getTypeSecondList() {
		return typeSecondList;
	}

	public void setTypeSecondList(List<TypeSecond> typeSecondList) {
		this.typeSecondList = typeSecondList;
	}

	public void setId(Long id)
	{
		this.id = id;
	}

	public Long getId()
	{
		return id;
	}
	public void setIcon(String icon)
	{
		this.icon = icon;
	}

	public String getIcon()
	{
		return icon;
	}

	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
				.append("id", getId())
				.append("icon", getIcon())
				.toString();
	}
}
